package com.javaclimb.music.service.impl;

import com.javaclimb.music.mapper.SongMapper;
import com.javaclimb.music.po.Song;
import com.javaclimb.music.service.SongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SongServiceImpl implements SongService {
    @Autowired
    private SongMapper mapper;

    @Override
    public int getSongNum() {
        return mapper.getSongNum();
    }

    @Override
    public List<Song> getSongList() {
        return mapper.getSongList();
    }
}
